import createAxios from '/@/utils/axios'

export const url = '/admin/extend/'

export function log(param: Object) {
    return createAxios({
        url: url + 'log',
        method: 'get',
        params: param
    })
}

export function agree(data: Object) {
    return createAxios({
        url: '/admin/Extend/agree',
        method: 'get',
        params: data
    })
}


export function reject(data: Object) {
    return createAxios({
        url: '/admin/Extend/reject',
        method: 'get',
        params: data
    })
}

export function user(data: Object) {
    return createAxios({
        url: '/admin/Extend/user',
        method: 'get',
        params: data
    })
}


export function giveaway(data: Object) {
    return createAxios({
        url: '/admin/Extend/giveaway',
        method: 'get',
        params: data
    })
}

export function edit(data: Object) {
    return createAxios({
        url: '/admin/Extend/edit',
        method: 'post',
        data: data
    })
}
